package com.lagou.edu;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyListener implements ServletContextListener {

    public void contextDestroyed(ServletContextEvent e) {

    }

    public void contextInitialized(ServletContextEvent e) {
        Application application = new Application();
        try {
            application.init();
        } catch (Exception e1) {
            e1.printStackTrace();
        }

    }
}

